<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>万信管理后台</title>
    <%@ include file="/commons/meta.jsp"%>
    <link href="${ctx}/resources/admin/css/base.css" rel="stylesheet">
    <link href="${ctx}/resources/admin/css/zTreeStyle.css" rel="stylesheet">
</head>
<body>
<!-- <div id="loading" class="loading" >加载中…</div>-->
<div id="shade-div" class="shade-div hide"></div> 
<%@ include file="/jsps/admin/inc/header.jsp"%>
<%@ include file="/jsps/admin/inc/menu.jsp"%>

<div id="main">
    <div id="content">
    <div class="hd">
        <span>客户端管理wwww</span>
    </div>
    <div class="tab-box">
        <ul>
            <li <s:if test="clientType==3">class="cur"</s:if>><a href="../upgrade/client_version!list.xhtml?clientType=3">windows客户端</a></li>
            <li <s:if test="clientType==1">class="cur"</s:if>><a href="${ctx}/upgrade/client_version!list.xhtml?clientType=1">andriod客户端</a></li>
            <li <s:if test="clientType==2">class="cur"</s:if>><a href="${ctx}/upgrade/client_version!list.xhtml?clientType=2">iOS客户端</a></li>
            <li <s:if test="clientType==4">class="cur"</s:if>><a href="${ctx}/upgrade/client_version!list.xhtml?clientType=4">Mac端</a></li>
              <li <s:if test="clientType==5">class="cur"</s:if>><a href="${ctx}/upgrade/client_version!versionList.xhtml?clientType=5">客户端历史版本</a></li>
        </ul>
    </div>
    <div class="hd">
        <span>版本信息</span>
        <button class="btn blue-btn fr"  id="fbButton">发布版本</button>
    </div>
   	<form id="saveForm">
  		<input type="hidden" value="" id="editForm_deptIds" name="deptIds">
  		<input type="hidden" value="${clientVersionInfo.fullVerNum}" id="ver_num" name="ver_num">
  		<input type="hidden" value="${clientType}" id="clientType" name="clientType">
    <div class="client">
        <p><label>升级版本号：</label> <input type="text" class="itext" name="verNum" id="verNum"></p>
        <p><label>历史版本：</label> 
        <select name="odeverNum" id="odevernum">
        <option>${clientVersionInfo.fullVerNum}</option>
        </select></p>
       <%--  <p><label>下载路径：</label> <input type="text" class="itext"  name="fullUrl" id="fullUrl"  value="${clientVersionInfo.fullUrl}"></p> --%>
        <p><label>升级方式：</label>
         <select name="updateFlag" id="updateFlag">
         <option value="3">非强制升级</option>
         <option value="1">强制升级</option>
           <s:if test="clientType==3||clientType==4">
         <option value="2">静默升级</option>
          </s:if>
         </select>
           <span class="remid"><label>静默提醒：</label>
            <select  name="remindTime">
            <option value="从不">从不</option>
            <option value="12">12小时</option>
            <option value="24">24小时</option>
            <option value="36">36小时</option>
            <option value="48">48小时</option>
            <option value="60">60小时</option>
            <option value="72">72小时</option>
            <option value="84">84小时</option>
            <option value="96">96小时</option>
            </select></span>
        </p>
        <p><label>下载路径：</label>
         <button class="btn gray-btn downloads"   type="button" id="btnQL" value="全量下载路径">+全量下载路径</button> 
         <button class="btn gray-btn downloads" type="button" value="增量下载路径">+增量下载路径</button></p>
          <div class="downloadPath" style="display:block;">
             <ul>
             <c:if test="${not empty clientVersionInfo.qlUrl1}">
             <li class='clearfix'><label>全量下载路径：</label><input type='text' class='itext' name='qlUrl' value='${clientVersionInfo.qlUrl1}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             
             <c:if test="${not empty clientVersionInfo.qlUrl2}">
             <li class='clearfix'><label>全量下载路径：</label><input type='text' class='itext' name='qlUrl' value='${clientVersionInfo.qlUrl2}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             
             <c:if test="${not empty clientVersionInfo.qlUrl3}">
             <li class='clearfix'><label>全量下载路径：</label><input type='text' class='itext' name='qlUrl' value='${clientVersionInfo.qlUrl3}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             
             <c:if test="${not empty clientVersionInfo.qlUrl4}">
             <li class='clearfix'><label>全量下载路径：</label><input type='text' class='itext' name='qlUrl' value='${clientVersionInfo.qlUrl4}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             
             <c:if test="${not empty clientVersionInfo.qlUrl5}">
             <li class='clearfix'><label>全量下载路径：</label><input type='text' class='itext' name='qlUrl' value='${clientVersionInfo.qlUrl5}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             </ul>
             
             <ul>
                  <c:if test="${not empty clientVersionInfo.zlUrl1}">
             <li class='clearfix'><label>增量下载路径：</label><input type='text' class='itext' name='zlUrl' value='${clientVersionInfo.zlUrl1}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             
             <c:if test="${not empty clientVersionInfo.zlUrl2}">
             <li class='clearfix'><label>增量下载路径：</label><input type='text' class='itext' name='zlUrl' value='${clientVersionInfo.zlUrl2}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             
             <c:if test="${not empty clientVersionInfo.zlUrl3}">
             <li class='clearfix'><label>增量下载路径：</label><input type='text' class='itext' name='zlUrl' value='${clientVersionInfo.zlUrl3}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             
             <c:if test="${not empty clientVersionInfo.zlUrl4}">
             <li class='clearfix'><label>增量下载路径：</label><input type='text' class='itext' name='zlUrl' value='${clientVersionInfo.zlUrl4}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             
             <c:if test="${not empty clientVersionInfo.zlUrl5}">
             <li class='clearfix'><label>增量下载路径：</label><input type='text' class='itext' name='zlUrl' value='${clientVersionInfo.zlUrl5}'><button class='btn gray-btn'>删除</button> </li>
             </c:if>
             </ul>
             
         </div>
         
         
        <p><label>升级范围：</label> 
        <input type="radio" name="radio" class="dans" value="0" checked="checked"> 全部升级 
        <input type="radio" name="radio" class="dan" value="1" > 部分升级</p>
    </div>
    </form>
    <!--<div class="hd">
        <span>版本发布对象</span>
        <button class="btn blue-btn fr" style="margin-left: 10px;">删 除</button>
        <button class="btn blue-btn fr" id="addClient">添 加</button>
    </div>-->
     <div class="bt" style="display: none;">
         <p style="line-height: 40px;color: red;padding-left: 10px;font-size: 14px;">请选择发布对象</p>
         <ul class="memberList">
         <li style="float:none;">
               <ul id="treeDemo1" class="ztree">
	                    </ul>
	                    </li>
         </ul>
        
     </div>

</div>
</div>
<%@ include file="/jsps/admin/inc/footer.jsp"%>
<!--添加-->
<div class="popbox w560" id="addVersion" >
    <div class="popbox-hd">
        <h2>添加用户</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd clearfix">
        <div class="clearfix" style="position: relative;padding: 10px 0">
            <div class="left_info">
                <p class="center">组织框架</p>
                <div class="zTreeDemoBackground" style="border: 1px solid #ccc;height: 400px;overflow: auto;">
                    <form action="" method="" style="text-align: center">
                        <div id="searchName" style="width: 196px;border-radius: 0">
                            <button type="submit" class="searchName"></button>
                            <input type="text" value="输入姓名、账号、拼音等进行搜索" class="gray" style="width: 118px;">
                            <span class="removeSearch"></span>
                        </div>
                    </form>
                    <ul id="treeDemo" class="ztree">
                    </ul>
                </div>
            </div>
            <div class="removeBtn">
                <button class="btn gray-btn">新增<i class="na"></i></button>
                <button class="btn gray-btn"><i class="re"></i>移除</button>
            </div>
            <div class="right_info">
                <p class="center">已选择部门或成员</p>
                <div class="zTreeDemoBackground" style="border: 1px solid #ccc;height: 400px;overflow: auto;">
                    <ul id="treeDemo1" class="ztree">
                    </ul>
                </div>

            </div>
        </div>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>
<script src="${ctx}/resources/admin/js/lib/jquery-1.8.0.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.core-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.excheck-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.exedit-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/common.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery-ui.js"></script>
<script src="${ctx}/resources/admin/js/upgradeManagement/clientVersion.js"></script>
<script src="${ctx}/resources/admin/js/lib/ztree.js"></script>
<script type="text/javascript">
$(function(){
	common.menuClicked('P26', 'C27');
});
</script>
</body>
</html>